package openbang.account.service.exception;

import com.google.gwt.user.client.rpc.SerializationException;

/**
 * 安全异常
 * 详细可以根据 code来区分
 * 1、没有登录
 * 2、没有操作权限
 * 等等
 * @see ExceptionEnum
 * @author aibo zeng
 *
 */

@SuppressWarnings("serial")
public class SecurityOBException extends SerializationException{
	
	/**
	 * 异常代码
	 * @see ExceptionEnum
	 */
    private int code ;
    
	public SecurityOBException() {
		super();
	}

	public SecurityOBException(String message) {
		super(message);
	}

	public SecurityOBException(int code) {
		super();
		this.code = code;
	}
	
	public SecurityOBException(int code , String message) {
		super(message);
		this.code = code;
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}	
}
